<!--
 * @Author: wangshuguang
 * @Date: 2022-03-28 17:55:50
 * @LastEditTime: 2022-03-30 14:14:49
 * @LastEditors: wangshuguang
 * @Description: 支出记录详情
-->
<template>
  <div>
    <el-row>
      <el-col :span="24" class="detailList">
        <div v-for="item of detailList" :key="item.key" class="formBox">
          <div class="formLabel">{{ item.label }}：</div>
          <div class="formValue">{{ dataForm[item.key] }}</div>
        </div>
      </el-col>
    </el-row>

  </div>
</template>

<script>
export default {
  props: {
    infoConfig: {}
  },
  data() {
    return {
      dataForm: {
        num: 1
      },
      detailList: [
        { label: '支付单号', key: 'paymentNo' },
        { label: '第三方支付单号', key: 'thirdOrderNo' },
        { label: '业务单号', key: 'orderNo' },
        { label: '业务类型', key: 'typeZh' },
        { label: '所属插件', key: 'pluginCodeZh' },
        { label: '交易金额', key: 'payAmount' },
        { label: '交易状态', key: 'flowStsZh' },
        { label: '交易时间', key: 'createTime' },
        { label: '备注', key: 'remark' }
      ]
    }
  },
  mounted() {
    console.log('infoConfig', this.infoConfig)
    this.dataForm = {
      ...this.infoConfig
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.head{
  font-size: 25px;
  display: flex;
  align-content: center;
  justify-content: space-between;
}
.formBox{
  display: flex;
  justify-content: space-between;
  line-height: 40px;
  .formLabel{
    width: 150px;
    text-align: right;
    font-weight: bold;
  }
  .formValue{
    flex: 1;
    text-align: left;
    padding-right: 20px;
  }
}
</style>
